def str_reverse(s):
    """
    Reverse a string
    """
    return s[::-1]

def substr(s, start, end):
    """
    Returns a substring of a string
    """
    return s[start:end]
